home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-04-12 | 1.9 KB | 74 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="7"
- "COUNT"="3"
- "UIPATH"="Network\Security\Shares"
- "NAME"="Removable Hard Disks Shares Access"
- "VERSION"="1.01"
- "OSVERSION"="000101"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Only members of computer's "Administrator" group"
- "TEXT 2"="Only members of "Administrator" and "Power Users" groups"
- "TEXT 3"="Only members of "Administrator" group and the local user"
- "DESCRIPTION 1"="This plug-in can be changed to restrict the access to removable hard disks once a user has logged on."
- "DESCRIPTION 2"=""Removeable hard disks" are drives like IOmega JAZ, ZIP etc."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com/"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="Registry Key: <Allocatedasd>
- "COMMENT 2"="Funny: <DASD> is an old mainframe term (!!) for Direct Access Storage Device, means: a hard drive"
-
-
-
- sP="HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Allocatedasd"
-
- ' Allocatedasd (DASD is an old mainframe term for Direct Access
- 'Storage Device--a hard drive) has three possible values to control
- 'access:
- ' - 0 Only members of the computer's Administrator group.
- ' - 1 Only members of the Administrator and Power Users groups.
- ' - 2 Only members of the Administrator group and the local current user.
-
-
- Sub Plugin_Initialize
- i=RegReadValue(sP)
- Select case i
- case 0
- SetUIElement 1,true
- case 1
- SetUIElement 2,true
- case 2
- SetUIElement 3,true
- case else
- SetUIElement 1,true
- end select
-
-
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- i=0
- if GetUIElement(1)=true then
- i=0
- end if
-
- if GetUIElement(2)=true then
- i=1
- end if
-
- if GetUIElement(3)=true then
- i=2
- end if
-
-
- Call RegWriteValue(sP,i,1)
- Call Restart()
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-
-
-